<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkSizeGroup</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="MiscObjects.html" title="Miscellaneous">
<link rel="prev" href="GtkIMMulticontext.html" title="GtkIMMulticontext">
<link rel="next" href="GtkTooltip.html" title="GtkTooltip">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="Builder.html" title="Interface builder">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
<link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="api-index-full.html" title="Index of all symbols">
<link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
<link rel="index" href="api-index-2-2.html" title="Index of new symbols in 2.2">
<link rel="index" href="api-index-2-4.html" title="Index of new symbols in 2.4">
<link rel="index" href="api-index-2-6.html" title="Index of new symbols in 2.6">
<link rel="index" href="api-index-2-8.html" title="Index of new symbols in 2.8">
<link rel="index" href="api-index-2-10.html" title="Index of new symbols in 2.10">
<link rel="index" href="api-index-2-12.html" title="Index of new symbols in 2.12">
<link rel="index" href="api-index-2-14.html" title="Index of new symbols in 2.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkIMMulticontext.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MiscObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkTooltip.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkSizeGroup.synopsis" class="shortcut">Top</a>
                 | 
                <a href="#GtkSizeGroup.description" class="shortcut">Description</a>
                 | 
                <a href="#GtkSizeGroup.object-hierarchy" class="shortcut">Object Hierarchy</a>
                 | 
                <a href="#GtkSizeGroup.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                 | 
                <a href="#GtkSizeGroup.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkSizeGroup"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkSizeGroup.top_of_page"></a>GtkSizeGroup</span></h2>
<p>GtkSizeGroup — Grouping widgets so they request the same size</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkSizeGroup.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;

                    <a class="link" href="GtkSizeGroup.html#GtkSizeGroup-struct" title="GtkSizeGroup">GtkSizeGroup</a>;
enum                <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a>;
<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *      <a class="link" href="GtkSizeGroup.html#gtk-size-group-new" title="gtk_size_group_new ()">gtk_size_group_new</a>                  (<a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a> mode);
void                <a class="link" href="GtkSizeGroup.html#gtk-size-group-set-mode" title="gtk_size_group_set_mode ()">gtk_size_group_set_mode</a>             (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a> mode);
<a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a>    <a class="link" href="GtkSizeGroup.html#gtk-size-group-get-mode" title="gtk_size_group_get_mode ()">gtk_size_group_get_mode</a>             (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);
void                <a class="link" href="GtkSizeGroup.html#gtk-size-group-set-ignore-hidden" title="gtk_size_group_set_ignore_hidden ()">gtk_size_group_set_ignore_hidden</a>    (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> ignore_hidden);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="GtkSizeGroup.html#gtk-size-group-get-ignore-hidden" title="gtk_size_group_get_ignore_hidden ()">gtk_size_group_get_ignore_hidden</a>    (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);
void                <a class="link" href="GtkSizeGroup.html#gtk-size-group-add-widget" title="gtk_size_group_add_widget ()">gtk_size_group_add_widget</a>           (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void                <a class="link" href="GtkSizeGroup.html#gtk-size-group-remove-widget" title="gtk_size_group_remove_widget ()">gtk_size_group_remove_widget</a>        (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *            <a class="link" href="GtkSizeGroup.html#gtk-size-group-get-widgets" title="gtk_size_group_get_widgets ()">gtk_size_group_get_widgets</a>          (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkSizeGroup.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----GtkSizeGroup
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkSizeGroup.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkSizeGroup implements
 <a class="link" href="gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="GtkSizeGroup.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkSizeGroup.html#GtkSizeGroup--ignore-hidden" title='The "ignore-hidden" property'>ignore-hidden</a>"            <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a class="link" href="GtkSizeGroup.html#GtkSizeGroup--mode" title='The "mode" property'>mode</a>"                     <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a>      : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkSizeGroup.description"></a><h2>Description</h2>
<p>
<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a> provides a mechanism for grouping a number of widgets
together so they all request the same amount of space.  This is
typically useful when you want a column of widgets to have the same
size, but you can't use a <a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a> widget.
</p>
<p>
In detail, the size requested for each widget in a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a> is
the maximum of the sizes that would have been requested for each
widget in the size group if they were not in the size group. The mode
of the size group (see <a class="link" href="GtkSizeGroup.html#gtk-size-group-set-mode" title="gtk_size_group_set_mode ()"><code class="function">gtk_size_group_set_mode()</code></a>) determines whether
this applies to the horizontal size, the vertical size, or both sizes.
</p>
<p>
Note that size groups only affect the amount of space requested, not
the size that the widgets finally receive. If you want the widgets in
a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a> to actually be the same size, you need to pack them in
such a way that they get the size they request and not more. For
example, if you are packing your widgets into a table, you would not
include the <a class="link" href="gtk-Standard-Enumerations.html#GTK-FILL--CAPS"><code class="literal">GTK_FILL</code></a> flag.
</p>
<p>
<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a> objects are referenced by each widget in the size group,
so once you have added all widgets to a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>, you can drop
the initial reference to the size group with <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>. If the
widgets in the size group are subsequently destroyed, then they will
be removed from the size group and drop their references on the size
group; when all widgets have been removed, the size group will be
freed.
</p>
<p>
Widgets can be part of multiple size groups; GTK+ will compute the
horizontal size of a widget from the horizontal requisition of all
widgets that can be reached from the widget by a chain of size groups
of type <a class="link" href="GtkSizeGroup.html#GTK-SIZE-GROUP-HORIZONTAL--CAPS"><code class="literal">GTK_SIZE_GROUP_HORIZONTAL</code></a> or <a class="link" href="GtkSizeGroup.html#GTK-SIZE-GROUP-BOTH--CAPS"><code class="literal">GTK_SIZE_GROUP_BOTH</code></a>, and the
vertical size from the vertical requisition of all widgets that can be
reached from the widget by a chain of size groups of type
<a class="link" href="GtkSizeGroup.html#GTK-SIZE-GROUP-VERTICAL--CAPS"><code class="literal">GTK_SIZE_GROUP_VERTICAL</code></a> or <a class="link" href="GtkSizeGroup.html#GTK-SIZE-GROUP-BOTH--CAPS"><code class="literal">GTK_SIZE_GROUP_BOTH</code></a>.
</p>
<div class="refsect2" lang="en">
<a name="GtkSizeGroup-BUILDER-UI"></a><h3>GtkSizeGroup as GtkBuildable</h3>
<p>
Size groups can be specified in a UI definition by placing an
&lt;object&gt; element with <code class="literal">class="GtkSizeGroup"</code>
somewhere in the UI definition. The widgets that belong to the
size group are specified by a &lt;widgets&gt; element that may
contain multiple &lt;widget&gt; elements, one for each member
of the size group. The name attribute gives the id of the widget.
</p>
<div class="example">
<a name="id3663243"></a><p class="title"><b>Example 46. A UI definition fragment with GtkSizeGroup</b></p>
<div class="example-contents"><pre class="programlisting">
&lt;object class="GtkSizeGroup"&gt;
  &lt;property name="mode"&gt;GTK_SIZE_GROUP_HORIZONTAL&lt;/property&gt;
  &lt;widgets&gt;
    &lt;widget name="radio1"/&gt;
    &lt;widget name="radio2"/&gt;
  &lt;/widgets&gt;
&lt;/object&gt;
</pre></div>
</div>
<br class="example-break">
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkSizeGroup.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GtkSizeGroup-struct"></a><h3>GtkSizeGroup</h3>
<pre class="programlisting">typedef struct _GtkSizeGroup GtkSizeGroup;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkSizeGroupMode"></a><h3>enum GtkSizeGroupMode</h3>
<pre class="programlisting">typedef enum {
  GTK_SIZE_GROUP_NONE,
  GTK_SIZE_GROUP_HORIZONTAL,
  GTK_SIZE_GROUP_VERTICAL,
  GTK_SIZE_GROUP_BOTH
} GtkSizeGroupMode;
</pre>
<p>
The mode of the size group determines the directions in which the size
group affects the requested sizes of its component widgets.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="GTK-SIZE-GROUP-NONE--CAPS"></a><span class="term"><code class="literal">GTK_SIZE_GROUP_NONE</code></span></p></td>
<td> group has no effect
</td>
</tr>
<tr>
<td><p><a name="GTK-SIZE-GROUP-HORIZONTAL--CAPS"></a><span class="term"><code class="literal">GTK_SIZE_GROUP_HORIZONTAL</code></span></p></td>
<td> group affects horizontal requisition
</td>
</tr>
<tr>
<td><p><a name="GTK-SIZE-GROUP-VERTICAL--CAPS"></a><span class="term"><code class="literal">GTK_SIZE_GROUP_VERTICAL</code></span></p></td>
<td> group affects vertical requisition
</td>
</tr>
<tr>
<td><p><a name="GTK-SIZE-GROUP-BOTH--CAPS"></a><span class="term"><code class="literal">GTK_SIZE_GROUP_BOTH</code></span></p></td>
<td> group affects both horizontal and vertical requisition
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-new"></a><h3>gtk_size_group_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *      gtk_size_group_new                  (<a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a> mode);</pre>
<p>
Create a new <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
<td> the mode for the new size group.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a newly created <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-set-mode"></a><h3>gtk_size_group_set_mode ()</h3>
<pre class="programlisting">void                gtk_size_group_set_mode             (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a> mode);</pre>
<p>
Sets the <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode"><span class="type">GtkSizeGroupMode</span></a> of the size group. The mode of the size
group determines whether the widgets in the size group should
all have the same horizontal requisition (<code class="literal">GTK_SIZE_GROUP_MODE_HORIZONTAL</code>)
all have the same vertical requisition (<code class="literal">GTK_SIZE_GROUP_MODE_VERTICAL</code>),
or should all have the same requisition in both directions
(<code class="literal">GTK_SIZE_GROUP_MODE_BOTH</code>).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_group</code></em> :</span></p></td>
<td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
<td> the mode to set for the size group.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-get-mode"></a><h3>gtk_size_group_get_mode ()</h3>
<pre class="programlisting"><a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a>    gtk_size_group_get_mode             (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);</pre>
<p>
Gets the current mode of the size group. See <a class="link" href="GtkSizeGroup.html#gtk-size-group-set-mode" title="gtk_size_group_set_mode ()"><code class="function">gtk_size_group_set_mode()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_group</code></em> :</span></p></td>
<td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the current mode of the size group.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-set-ignore-hidden"></a><h3>gtk_size_group_set_ignore_hidden ()</h3>
<pre class="programlisting">void                gtk_size_group_set_ignore_hidden    (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> ignore_hidden);</pre>
<p>
Sets whether unmapped widgets should be ignored when
calculating the size.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_group</code></em> :</span></p></td>
<td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ignore_hidden</code></em> :</span></p></td>
<td> whether unmapped widgets should be ignored
  when calculating the size
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-get-ignore-hidden"></a><h3>gtk_size_group_get_ignore_hidden ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            gtk_size_group_get_ignore_hidden    (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);</pre>
<p>
Returns if invisible widgets are ignored when calculating the size.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_group</code></em> :</span></p></td>
<td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> if invisible widgets are ignored.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-add-widget"></a><h3>gtk_size_group_add_widget ()</h3>
<pre class="programlisting">void                gtk_size_group_add_widget           (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Adds a widget to a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>. In the future, the requisition
of the widget will be determined as the maximum of its requisition
and the requisition of the other widgets in the size group.
Whether this applies horizontally, vertically, or in both directions
depends on the mode of the size group. See <a class="link" href="GtkSizeGroup.html#gtk-size-group-set-mode" title="gtk_size_group_set_mode ()"><code class="function">gtk_size_group_set_mode()</code></a>.
</p>
<p>
When the widget is destroyed or no longer referenced elsewhere, it will 
be removed from the size group.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_group</code></em> :</span></p></td>
<td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to add
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-remove-widget"></a><h3>gtk_size_group_remove_widget ()</h3>
<pre class="programlisting">void                gtk_size_group_remove_widget        (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group,
                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Removes a widget from a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_group</code></em> :</span></p></td>
<td> a <span class="type">GtkSizeGrup</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to remove
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-size-group-get-widgets"></a><h3>gtk_size_group_get_widgets ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
>GSList</a> *            gtk_size_group_get_widgets          (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);</pre>
<p>
Returns the list of widgets associated with <em class="parameter"><code>size_group</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size_group</code></em> :</span></p></td>
<td> a <span class="type">GtkSizeGrup</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <a
href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"
><span class="type">GSList</span></a> of widgets. The list is owned by GTK+ 
  and should not be modified.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkSizeGroup.property-details"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkSizeGroup--ignore-hidden"></a><h3>The <code class="literal">"ignore-hidden"</code> property</h3>
<pre class="programlisting">  "ignore-hidden"            <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>
If <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a>, unmapped widgets are ignored when determining
the size of the group.</p>
<p>
</p>
<p>Default value: FALSE</p>
<p>Since 2.8</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkSizeGroup--mode"></a><h3>The <code class="literal">"mode"</code> property</h3>
<pre class="programlisting">  "mode"                     <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode" title="enum GtkSizeGroupMode">GtkSizeGroupMode</a>      : Read / Write</pre>
<p>The directions in which the size group affects the requested sizes of its component widgets.</p>
<p>Default value: GTK_SIZE_GROUP_HORIZONTAL</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.11</div>
</body>
</html>
